<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/tabs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="${ctx}/styles/listTable.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/show.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>
<script language="JavaScript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript">
	function openSearch() {
		var url = "${ctx }/occupation_perfectItemRequisitionAction.do?method=searchPage";
		top.windowOpen(url, 'SearchPage', '高级查询', 400, 550,true,'SearchPage');
	}

	//查找按钮
	function searchPerfectItemRequisition(param){
		if(param == null){
			var isPass=$('serachForm').fireEvent("onSubmit");
			if(isPass){
				param = Form.serialize('serachForm');
			}
		}
		var url = '${ctx }/occupation_perfectItemRequisitionAction.do?method=setSearchCatch';
		new Ajax.Request(url,{method: 'post',parameters :param ,onSuccess : function(response){
            ajaxSubmitException(response.responseText);
      		if("true" == response.responseText){
      			refresh();
	        }
		}});
	}

	//刷新列表
	function refresh(){
		$('perfectItemRequisitionList').src = '${ctx }/occupation_perfectItemRequisitionAction.do?method=queryPerfectItemRequisitionByPage';
	}


	function showEditPage(isEdit){
		findFrame('perfectItemRequisitionList').showEditPage(isEdit);
	}

	function itemDelete(){
		findFrame('perfectItemRequisitionList').itemDelete();
	}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>整改项目</title>
</head>
<body style="overflow: auto;">
<div class="pageNav_bg">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td id="pageNav_leftimg"><img src="${ctx}/images/ico_custome_paigong.gif" width="46" height="47" /></td>
		<td id="navWord"><span class="page_title"> 整改项目</span></td>
		<td class="pageNav_right"><a href="javascript:showFull_in();"><img id="full_image" src="${ctx}/images/ico_fullscreen.gif" border="0" /></a></td>
	</tr>
</table>
</div>
<div class="container">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" id="search01">
			<tr>
				 <td class="bg_search2">
				<table border="0" cellpadding="0" cellspacing="1" class="tab_search2">
				<form name="serachForm" id="searchForm" class="required-validate" action="javascript:return">
					<tr>
						<td class="td_search">楼 栋：</td>
						<td class="td_search">
						<pms:unitedSelect
                       		name="buildingId"
                       		id="buildingId"
                       		optionLabel="name"
                       		optionValue="keyword"
                       		selectText="请选择..."
                       		dataList="${buildingList }">
                    	</pms:unitedSelect>
						</td>
						<td class="td_search" colspan="2" >房 号：<input name="houseNumber" id="houseNumber" type="text" class="inputtext"  onkeydown="if(event.keyCode==13)searchPerfectItemRequisition(null);"  size="10" /></td>

                       <td class="td_search">申报项目类型：</td>
						<td class="td_search">
						<pms:unitedSelect
                       		name="perfectItemTypeConfigId"
                       		id="perfectItemTypeConfigId"
                       		optionLabel="perfectItemTypeName"
                       		optionValue="keyword"
                       		selectText="请选择..."
                       		dataList="${perfectItemTypeList }">
                    	</pms:unitedSelect>
						</td>


						<td>
						</td>
					</tr>
					<tr>
					</tr>
                   <tr>
                   <td class="td_search">派工状态：</td>
						<td class="td_search align_left">
						<select name="dispatchYn" id="dispatchYn" style="width: 110px;">
							<option selected value="">请选择...</option>
							<option value="1">已派工</option>
							<option value="0">未派工</option>
						</select></td>

						<td class="td_search">
						<table border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td class="buttonOffLeft" id="btn1_111"></td>
								<td class="buttonOffMiddle" id="btn1_112" onblur="btn_change(11)" onclick="javascript:searchPerfectItemRequisition(null);" onMouseOver="btn_change_over(11)" onMouseOut="btn_change_out(11)"><img src="${ctx}/images/ico_searchico.gif"  alt="" border="0" align="absmiddle" /> 查 询</td>
								<td class="buttonOffRight" id="btn1_113"></td>
							</tr>
						</table>
						</td>
						<td>
						<table border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td class="buttonOffLeft" id="btn1_21"></td>
								<td class="buttonOffMiddle" id="btn1_22" onClick="javascript:openSearch()" onblur="btn_change(2)" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)"><a href="#" onFocus="this.blur()" style="color: #000;">高级查询</a></td>
								<td class="buttonOffRight" id="btn1_23"></td>
							</tr>
						</table>
						</td>
</tr>


					</form>
				</table>

				</td>
			</tr>
		</table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab_line">
		  <tr>
		    <td class="bg_toolBar">
			<table  width="100%" border="0" cellspacing="0" cellpadding="0">
		        <tr>
		          <td width="65%">&nbsp;</td>
		          <td width="35%" align="right">
					<table border="0" cellpadding="0" cellspacing="0" id="ico2">
						<tr>
						<pms:AuthTag authName="occupation_perfectItemRequisitionAction.do?method=addPerfectItemRequisition">
							<td class="toolbarico"><a href="#" onclick="javascript:showEditPage(false);" onfocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增" />&nbsp;</a></td>
							</pms:AuthTag>
							<pms:AuthTag authName="occupation_perfectItemRequisitionAction.do?method=editPerfectItemRequisition">
							<td class="toolbarico"><a href="#" onClick="javascript:showEditPage(true);" onFocus="this.blur()"><img src="${ctx}/images/ico_amend.gif" alt="修改" width="16" height="16" border="0" align="absbottom" /></a></td>
							</pms:AuthTag>
							<pms:AuthTag authName="occupation_perfectItemRequisitionAction.do?method=deletePerfectItemRequisition">
							<td class="toolbarico"><a href="#" onClick="javascript:itemDelete();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删除" width="16" height="16" border="0" align="absbottom" /></a></td>
						</pms:AuthTag>
						</tr>
					</table>
				</td></tr>
			</table>
			</td>
			</tr>
		</table>
		<iframe src="${ctx }/occupation_perfectItemRequisitionAction.do?method=listPage" name="perfectItemRequisitionList" id="perfectItemRequisitionList" width="100%" height="100%" frameborder="0" scrolling="auto"> </iframe>
</div>

</body>
</html>